package com.ceair.flight.refund.location.model;

import com.ceair.flight.refund.util.DateUtil;
import com.ceair.flight.refund.util.StringUtil;
import com.ceair.muservice.common.dto.AbstractBaseDO;

import java.math.BigDecimal;
import java.util.Date;


public class WifiSegDO extends AbstractBaseDO {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4369268460200817024L;
	/**
	 * wifi航段编号
	 */
	private Long wifiSegId;
	
	/**
	 * wifi订单号
	 */
	private String wifiOrderNo;
	
	/**
	 * EMD航段对应机票订单中航段编号
	 */
	private String flightSegId;
	/**
	 * 子工单号
	 */
	private String subJobOrder;
	/**
	 * wifi旅客编号
	 */
	private Long wifiPaxNo;
	/**
	 * 机票票号
	 */
	private String tktNo;
	/**
	 * 第几航段
	 */
	private Integer segSq;
	/**
	 * 市场方航班号
	 */
	private String flightNo;
	/**
	 * 市场方航空公司
	 */
	private String carrCd;
	/**
	 * 承运人航班号
	 */
	private String realFlightNo;
	/**
	 * 承运人航空公司
	 */
	private String realCarrCd;
	/**
	 * 出发日期
	 */
	private String depDt;
	/**
	 * 出发时间
	 */
	private String depTm;
	/**
	 * 到达日期
	 */
	private String arrDt;
	/**
	 * 到达时间
	 */
	private String arrTm;
	/**
	 * 到达机场三字码
	 */
	private String arrAirpCd;
	/**
	 * 出发机场三字码
	 */
	private String depAirpCd;
	/**
	 * 到达航站楼
	 */
	private String arrTerm;
	/**
	 * 出发航站楼
	 */
	private String depTerm;
	/**
	 * 仓位
	 */
	private String classTp;
	/**
	 * 舱等
	 */
	private String cabinClass;
	/**票面价**/
	private BigDecimal FCNY;
	/**实付价**/
	private BigDecimal SCNY;
	/**
	 * 币种
	 */
	private String currency;

	/**
	 * 座位值
	 */
	private String seatNo;
	
	private String wifiCode;//wifi验证码
	
	private String status;//子状态  1 新增  2申请成功  3 申请失败  4 已取消
	
	private String reason;//申请结果描述
	
	private String cancelId;//取消人ID
	
	private Date cancelDtm;//取消日期

	public Long getWifiSegId() {
		return wifiSegId;
	}

	public void setWifiSegId(Long wifiSegId) {
		this.wifiSegId = wifiSegId;
	}

	public String getFlightSegId() {
		return flightSegId;
	}

	public void setFlightSegId(String flightSegId) {
		this.flightSegId = flightSegId;
	}


	public String getSubJobOrder() {
		return subJobOrder;
	}

	public void setSubJobOrder(String subJobOrder) {
		this.subJobOrder = subJobOrder;
	}

	public Long getWifiPaxNo() {
		return wifiPaxNo;
	}

	public void setWifiPaxNo(Long wifiPaxNo) {
		this.wifiPaxNo = wifiPaxNo;
	}

	public String getTktNo() {
		return tktNo;
	}

	public void setTktNo(String tktNo) {
		this.tktNo = tktNo;
	}

	public Integer getSegSq() {
		return segSq;
	}

	public void setSegSq(Integer segSq) {
		this.segSq = segSq;
	}

	public String getFlightNo() {
		return flightNo;
	}

	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}

	public String getCarrCd() {
		return carrCd;
	}

	public void setCarrCd(String carrCd) {
		this.carrCd = carrCd;
	}

	public String getRealFlightNo() {
		return realFlightNo;
	}

	public void setRealFlightNo(String realFlightNo) {
		this.realFlightNo = realFlightNo;
	}

	public String getRealCarrCd() {
		return realCarrCd;
	}

	public void setRealCarrCd(String realCarrCd) {
		this.realCarrCd = realCarrCd;
	}

	public String getDepDt() {
		return depDt;
	}

	public void setDepDt(String depDt) {
		this.depDt = depDt;
	}

	public String getDepTm() {
		return depTm;
	}

	public void setDepTm(String depTm) {
		this.depTm = depTm;
	}

	public String getArrDt() {
		return arrDt;
	}

	public void setArrDt(String arrDt) {
		this.arrDt = arrDt;
	}

	public String getArrTm() {
		return arrTm;
	}

	public void setArrTm(String arrTm) {
		this.arrTm = arrTm;
	}

	public String getArrAirpCd() {
		return arrAirpCd;
	}

	public void setArrAirpCd(String arrAirpCd) {
		this.arrAirpCd = arrAirpCd;
	}

	public String getDepAirpCd() {
		return depAirpCd;
	}

	public void setDepAirpCd(String depAirpCd) {
		this.depAirpCd = depAirpCd;
	}

	public String getArrTerm() {
		return arrTerm;
	}

	public void setArrTerm(String arrTerm) {
		this.arrTerm = arrTerm;
	}

	public String getDepTerm() {
		return depTerm;
	}

	public void setDepTerm(String depTerm) {
		this.depTerm = depTerm;
	}

	public String getClassTp() {
		return classTp;
	}

	public void setClassTp(String classTp) {
		this.classTp = classTp;
	}
	
	public String getCabinClass() {
		return cabinClass;
	}

	public void setCabinClass(String cabinClass) {
		this.cabinClass = cabinClass;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getSeatNo() {
		return seatNo;
	}

	public void setSeatNo(String seatNo) {
		this.seatNo = seatNo;
	}
	
	public BigDecimal getFCNY() {
		return FCNY;
	}

	public void setFCNY(BigDecimal fCNY) {
		FCNY = fCNY;
	}
	public BigDecimal getSCNY() {
		return SCNY;
	}
	
	public void setSCNY(BigDecimal sCNY) {
		SCNY = sCNY;
	}

	public String getWifiCode() {
		return wifiCode;
	}

	public void setWifiCode(String wifiCode) {
		this.wifiCode = wifiCode;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getCancelId() {
		return cancelId;
	}

	public void setCancelId(String cancelId) {
		this.cancelId = cancelId;
	}
	
	public Date getCancelDtm() {
		return cancelDtm;
	}

	public void setCancelDtm(Date cancelDtm) {
		this.cancelDtm = cancelDtm;
	}

	public String getWifiOrderNo() {
		return wifiOrderNo;
	}
	
	public void setWifiOrderNo(String wifiOrderNo) {
		this.wifiOrderNo = wifiOrderNo;
	}

	@Override
	public String toString() {
		return   flightSegId
				+ StringUtil.SEPARATOR + subJobOrder+ StringUtil.SEPARATOR+ tktNo + StringUtil.SEPARATOR + segSq
				+ StringUtil.SEPARATOR + flightNo + StringUtil.SEPARATOR + carrCd + StringUtil.SEPARATOR + realFlightNo + StringUtil.SEPARATOR
				+ realCarrCd + StringUtil.SEPARATOR + depDt + StringUtil.SEPARATOR + depTm + StringUtil.SEPARATOR + arrDt + StringUtil.SEPARATOR + arrTm
				+ StringUtil.SEPARATOR + arrAirpCd + StringUtil.SEPARATOR + depAirpCd + StringUtil.SEPARATOR + arrTerm + StringUtil.SEPARATOR
				+ depTerm + StringUtil.SEPARATOR + classTp+ StringUtil.SEPARATOR + currency+ StringUtil.SEPARATOR + seatNo
				+ StringUtil.SEPARATOR+createId+ StringUtil.SEPARATOR + DateUtil.toString(createDtm, StringUtil.DATEFORMATE)
				+ StringUtil.SEPARATOR+updateId+ StringUtil.SEPARATOR + DateUtil.toString(updateDtm, StringUtil.DATEFORMATE)+ StringUtil.SEPARATOR+version+ StringUtil.SEPARATOR+deleted
				+ StringUtil.SEPARATOR + FCNY + StringUtil.SEPARATOR + SCNY+ StringUtil.SEPARATOR + cabinClass
				+ StringUtil.SEPARATOR +wifiSegId + StringUtil.SEPARATOR + wifiPaxNo+ StringUtil.SEPARATOR + wifiCode + StringUtil.SEPARATOR + status
				+ StringUtil.SEPARATOR + StringUtil.replaceBlank(reason) + StringUtil.SEPARATOR + cancelId + StringUtil.SEPARATOR + DateUtil.toString(cancelDtm, "yyyy-MM-dd HH:mm:ss")
				 + StringUtil.SEPARATOR + wifiOrderNo
				;
	}


}
